package com.wf.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 
 * @TableName user_role
 */
@TableName(value ="user_role")
@Data
@NoArgsConstructor
public class UserRole implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 3209557351882598715L;
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Long useId;

    /**
     * 角色id
     */
    private Long roleId;


    public UserRole(Long userId, Long roleId) {
        this.useId = userId;
        this.roleId = roleId;
    }
}